GtkIconFactory: Remove outdated information from the docs
authorMatthias Clasen <mclasen@redhat.com>
Mon, 12 May 2014 02:01:37 +0000 (22:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 12 May 2014 02:02:45 +0000 (22:02 -0400)
The stock browser was removed from gtk3-demo.

gtk/deprecated/gtkiconfactory.c
gtk/deprecated/gtknumerableicon.c
gtk/gtkicontheme.c

index 55e5d554b8e25a8213f1f5de24f4af4afa2b7408..47bf9cc760e9e7ba28696704b3f79153463d8ea9 100644 (file)
@@ -50,9 +50,6 @@
  * @Short_description: Manipulating stock icons
  * @Title: Themeable Stock Images
  *
- * Browse the available stock icons using
- * the “gtk3-demo” application.
- *
  * An icon factory manages a collection of #GtkIconSet; a #GtkIconSet manages a
  * set of variants of a particular icon (i.e. a #GtkIconSet contains variants for
  * different sizes and widget states). Icons in an icon factory are named by a
index 836e1a7104be8387eda3d7a2720ed60f49efa716..6316256fe4a3cb768b2c76e24d0a1cd32712507f 100644 (file)
@@ -51,6 +51,8 @@
 #include <pango/pango.h>
 #include <math.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 struct _GtkNumerableIconPrivate {
   gint count;
   gint icon_size;
@@ -713,6 +715,8 @@ _gtk_numerable_icon_set_background_icon_size (GtkNumerableIcon *self,
  * Returns: the currently displayed label
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 const gchar *
 gtk_numerable_icon_get_label (GtkNumerableIcon *self)
@@ -742,6 +746,8 @@ gtk_numerable_icon_get_label (GtkNumerableIcon *self)
  * has always priority.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 void
 gtk_numerable_icon_set_label (GtkNumerableIcon *self,
@@ -767,6 +773,8 @@ gtk_numerable_icon_set_label (GtkNumerableIcon *self,
  * Returns: the currently displayed value
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 gint
 gtk_numerable_icon_get_count (GtkNumerableIcon *self)
@@ -791,6 +799,8 @@ gtk_numerable_icon_get_count (GtkNumerableIcon *self)
  * and gtk_numerable_icon_set_label() has always priority.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 void
 gtk_numerable_icon_set_count (GtkNumerableIcon *self,
@@ -819,6 +829,8 @@ gtk_numerable_icon_set_count (GtkNumerableIcon *self,
  *     Use g_object_ref() if you want to keep it around
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 GtkStyleContext *
 gtk_numerable_icon_get_style_context (GtkNumerableIcon *self)
@@ -837,6 +849,8 @@ gtk_numerable_icon_get_style_context (GtkNumerableIcon *self)
  * given #GtkStyleContext.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 void
 gtk_numerable_icon_set_style_context (GtkNumerableIcon *self,
@@ -877,6 +891,8 @@ gtk_numerable_icon_set_style_context (GtkNumerableIcon *self,
  * gtk_numerable_icon_set_background_icon_name() has always priority.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 void
 gtk_numerable_icon_set_background_gicon (GtkNumerableIcon *self,
@@ -909,6 +925,8 @@ gtk_numerable_icon_set_background_gicon (GtkNumerableIcon *self,
  * Returns: (transfer none): a #GIcon, or %NULL
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 GIcon *
 gtk_numerable_icon_get_background_gicon (GtkNumerableIcon *self)
@@ -940,6 +958,8 @@ gtk_numerable_icon_get_background_gicon (GtkNumerableIcon *self)
  * and gtk_numerable_icon_set_background_gicon() has always priority.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 void
 gtk_numerable_icon_set_background_icon_name (GtkNumerableIcon *self,
@@ -978,6 +998,8 @@ gtk_numerable_icon_set_background_icon_name (GtkNumerableIcon *self,
  * Returns: an icon name, or %NULL
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 const gchar *
 gtk_numerable_icon_get_background_icon_name (GtkNumerableIcon *self)
@@ -996,6 +1018,8 @@ gtk_numerable_icon_get_background_icon_name (GtkNumerableIcon *self)
  * Returns: (transfer full): a new #GIcon
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 GIcon *
 gtk_numerable_icon_new (GIcon *base_icon)
@@ -1019,6 +1043,8 @@ gtk_numerable_icon_new (GIcon *base_icon)
  * Returns: (transfer full): a new #GIcon
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.14
  */
 GIcon *
 gtk_numerable_icon_new_with_style_context (GIcon           *base_icon,
index 2d40287d7ea6a965d4ba8ab0fabe88fe5138dcb3..1d9209ac80c2a2d8b6c48ff8764e243432fe5fd7 100644 (file)
@@ -44,7 +44,7 @@
 #include "gtkbuiltincache.h"
 #include "gtkintl.h"
 #include "gtkmain.h"
-#include "gtknumerableiconprivate.h"
+#include "deprecated/gtknumerableiconprivate.h"
 #include "gtksettings.h"
 #include "gtkprivate.h"
 
@@ -5328,8 +5328,10 @@ gtk_icon_theme_lookup_by_gicon_for_scale (GtkIconTheme       *icon_theme,
       GList *list, *l;
       GtkIconInfo *base_info, *emblem_info;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       if (GTK_IS_NUMERABLE_ICON (icon))
         _gtk_numerable_icon_set_background_icon_size (GTK_NUMERABLE_ICON (icon), size / 2);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
       base = g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon));
       base_info = gtk_icon_theme_lookup_by_gicon_for_scale (icon_theme, base, size, scale, flags);